<include file="Public/left" />

<form class="table-form" name="form1" method="post" action="<{:U('editok')}>">

<div class="nav-table">
<span class="on" href="table-one">编辑字段</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
<ul id="table-one">
  <li>
   <label for="name">字段</label>
   <input type="text" name="name" id="name" value="<{$content['name']}>" />
   <input type="hidden" name="id" id="id" value="<{$content['id']}>">
  </li>
  <li>
   <label for="title">说明</label>
   <input type="text" name="title" id="title" value="<{$content['title']}>" />
  </li>
 
  <li>
   <label for="content">内容 <a id="load" href="javascript:void(0)">加载编辑器</a> <a id="remove" href="javascript:void(0)">移除编辑器</a></label>
   <textarea name="content" id="content" style="width:800px;height:200px;" id="content"><{$content['content']}></textarea>
   <script language="javascript" type="text/javascript" src="__PLUGIN__/kindeditor/kindeditor.js"></script>
   <script>
	  $(function() {
		  $('#load').click(function() {
			  KindEditor.create('textarea[name="content"]');
		  });
		  $('#remove').click(function() {
			  KindEditor.remove('textarea[name="content"]');
		  });
	  });
  </script>
  </li> 
</ul>

<div class="table-but"><input type="submit" name="button" id="button" value="确 认 修 改"></div>
</div>
</form>
<include file="Public/foot" />